package com.jiepos.mpos.biz.operationlog.controller;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.jiepos.mpos.biz.operationlog.service.LogInterDataService;
import com.jiepos.mpos.common.entity.App_Log_Inter_DataEntity;
import com.jiepos.mpos.core.controller.BaseController;
import com.jiepos.mpos.core.entity.Pagination;

/**
 * 
 * 接口数据报送流水控制类
 * @ProjectName:  [mpos] 
 * @Package com.jiepos.mpos.biz.operationlog.controller 
 * @author 张磊
 * @version 1.0
 * @since 2017年12月12日 下午3:55:29
 * @history（历次修订内容、修订人、修订时间等）
 * @UpdateRemark [说明本次修改内容]
 * @Copyright (c) 2017 江苏杰博实信息技术有限公司
 */
@Controller
@RequestMapping("/loginterdata")
public class LogInterDataController extends BaseController {

	@Autowired
	private LogInterDataService logInterDataService;
	
	/**
	 * 进入接口数据报送流水页面
	 * @param request
	 * @param response
	 * @return
	 */
	@RequestMapping("/getloginterdataList.do")
	public ModelAndView getloginterdataList(HttpServletRequest request,HttpServletResponse response){
		ModelAndView model = new ModelAndView("/module/operationlog/interdatalog/interdatalog_list");
		return super.getDetail(request, response, model);
	}
	
	/**
	 * 获取接口数据报送流水Json
	 * @param request
	 * @param response
	 * @param pagination
	 * @param app_Log_Inter_DataEntity
	 * @param startDate
	 * @param endDate
	 * @return
	 */
	@RequestMapping("/getloginterdataJson.do")
	public Map getloginterdataJson(HttpServletRequest request,HttpServletResponse response,Pagination pagination,App_Log_Inter_DataEntity app_Log_Inter_DataEntity,String startDate,String endDate){
		
		return logInterDataService.getloginterdataJson(pagination,request,app_Log_Inter_DataEntity,startDate,endDate);
	}
}
